<?php include $this->getViewFile('/common/Head') ?>
<body class="J_scroll_fixed">
    <div class="wrap J_check_wrap">
        <?php include $this->getViewFile('/common/Nav') ?>
        <form name="myformedit" action="<?php echo AdminBase::U('editpic', array('pid' => $data->pid)) ?>" method="post" class="J_ajaxForm" enctype="multipart/form-data">
            <div class="h_a">基本属性</div>
            <div class="table_full">
                <table width="100%" class="table_form contentWrap">                    
                    <tbody>
                        <tr>
                            <th width="80">图片</th>
                            <td><img src="<?php echo $data->filepath; ?>"style="width: 300px;height: 150px;">
                                <input type="file" name="changefile" id="changeimg">
                            </td>
                        </tr>
                        <tr>
                        <tr>
                            <th width="80">图片地址</th>
                            <td><input type="test" name="filepath" class="input length_3" value="<?php echo $data->filepath; ?>" placeholder="图片地址"></td>
                        </tr>
                        <tr>
                            <th width="80">活动链接</th>
                            <td><input type="test" name="url" class="input length_3" value="<?php echo $data->url; ?>" placeholder="活动链接"></td>
                        </tr>
                        <tr>
                            <th width="80">活动标题</th>
                            <td><input type="test" name="title" class="input length_3" value="<?php echo $data->title; ?>" placeholder="活动标题"></td>
                        </tr>
                         <tr>
                            <th width="80">上传时间</th>
                            <td><?php echo date('Y-m-d H:i:s', $data->uploadtime) ?></td>
                        </tr>
                        <tr>
                            <th width="80">平台号</th>
                            <td ><?php if ($data->platform == 0) {
                            echo Andriod;
                        } elseif ($data->platform == 1) {
                            echo ios;
                        } elseif ($data->platform == 2) {
                            echo Andriod;
                        } else {
                            echo ios;
                        } ?></td>
                        </tr>
                        <tr>
                            <th width="80">显示位置</th>
                            <td><?php if ($data->platform == 0) {
                            echo 启动图;
                        } elseif ($data->platform == 1) {
                            echo 启动图;
                        } elseif ($data->platform == 2) {
                            echo 广告图;
                        } else {
                            echo 广告图;
                        } ?></td>    
                        </tr>                     
                    </tbody>
                </table>
            </div>
            <div class="btn_wrap_pd">
                <input type="hidden" name="pid" value="<?php echo $data->pid ?>">
                <input type="hidden" name="aid" value="<?php echo $data->aid ?>">
                <button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">保存</button>
            </div>
        </form>
    </div>